﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Bussiness_Objects.BusinessRule
{
    public class ValidateEmail
    {
        protected static string Pattern = @"\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*";

        public static bool CheckEmail(string str)
        {
            return Regex.Match(str, Pattern).Success;
        }
    }
}
